x86/mem-sharing: mov {get,put}_two_gfns()
authorJan Beulich <jbeulich@suse.com>
Wed, 7 Jul 2021 10:35:54 +0000 (12:35 +0200)
committerJan Beulich <jbeulich@suse.com>
Wed, 7 Jul 2021 10:35:54 +0000 (12:35 +0200)
commitb8d27e5b3391f4f90744f6ce75c02bd2661f7788
treeba53ab70574710d98c98cca33ca1a96b09d8fe50
parent09af2d01a2fe6a0af08598bdfe12c9707f4d82ba
x86/mem-sharing: mov {get,put}_two_gfns()

There's no reason for every CU including p2m.h to have these two
functions compiled, when they're both mem-sharing specific right now and
for the foreseeable future.

Largely just code movement, with some style tweaks, the inline-s
dropped, and "put" being made consistent with "get" as to their NULL
checking of the passed in pointer to struct two_gfns.

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Acked-by: Tamas K Lengyel <tamas@tklengyel.com>
xen/arch/x86/mm/mem_sharing.c
xen/include/asm-x86/p2m.h